@echo off
mkdir vm
cd vm

REM - BOTS
call ..\compile.bat ..\BOTS_IntermediateCommands.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\BOTS_HUD.c
@if errorlevel 1 goto quit
REM call ..\compile.bat ..\BOTS_HUD_widgets.c
REM @if errorlevel 1 goto quit
call ..\compile.bat ..\BOTS_Effects.c
@if errorlevel 1 goto quit
REM - BOTS
call ..\compile.bat ..\..\game\bg_misc.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\..\game\bg_pmove.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\..\game\bg_slidemove.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\..\game\bg_lib.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\..\game\q_math.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\..\game\q_shared.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_consolecmds.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_draw.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_drawtools.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_effects.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_ents.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_event.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_info.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_localents.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_main.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_marks.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_players.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_playerstate.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_predict.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_scoreboard.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_servercmds.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_snapshot.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_view.c
@if errorlevel 1 goto quit
call ..\compile.bat ..\cg_weapons.c
@if errorlevel 1 goto quit




q3asm -f ..\cgame
:quit
cd ..
